package com.alienlab.finder.service;

import com.alienlab.finder.domain.TemporaryPosition;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Optional;

/**
 * Service Interface for managing TemporaryPosition.
 */
public interface TemporaryPositionService {

    /**
     * Save a temporaryPosition.
     *
     * @param temporaryPosition the entity to save
     * @return the persisted entity
     */
    TemporaryPosition save(TemporaryPosition temporaryPosition);

    /**
     * Get all the temporaryPositions.
     *
     * @param pageable the pagination information
     * @return the list of entities
     */
    Page<TemporaryPosition> findAll(Pageable pageable);


    /**
     * Get the "id" temporaryPosition.
     *
     * @param id the id of the entity
     * @return the entity
     */
    Optional<TemporaryPosition> findOne(Long id);

    /**
     * Delete the "id" temporaryPosition.
     *
     * @param id the id of the entity
     */
    void delete(Long id);

    void lookingPosition(String admin_open_id,String guset_open_id,String flag,String type) throws Exception;

    void sendPosition(String guset_open_id,String x,String y) throws Exception;



}
